{template header}
<div class="container">


<div class="row">

<div class="col-md-8">

    <div class="panel panel-default" >
        <div class="panel-heading">最新话题</div>

        <div class="panel-body topic_list">
            <ul>
                {loop $arrTopic $key $item}
                <li>
                    <div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

                    <div class="topic_title">
                        <div class="title">

                            {if $item['appkey'] != 'group' && $item['appkey']!=''}
                            <a target="_blank" style="color:#999999;font-size: 12px;margin-right: 5px;" class="titles-type" href="{SITE_URL}{php echo tsUrl($item['appkey'])}">[{$item['appname']}]</a>
                            <a title="{$item[title]}" href="{SITE_URL}{php echo tsUrl($item['appkey'],$item['appaction'],array('id'=>$item['appid']))}{$mylink}">{$item[title]}</a>
                            {else}
                            <a title="{$item[title]}" href="{tsUrl('group','topic',array('id'=>$item[topicid]))}{$mylink}">{$item[title]}</a>
                            {/if}

                            {if $item['postby']==1}<a href="{tsUrl('home','phone')}"><img align="absmiddle" alt="通过Iphone手机端发布" title="通过Iphone手机端发布" src="{SITE_URL}public/images/ios.jpg" /></a>{/if}

                        </div>
                        <div class="topic_info">
<span style="float:left;">

</span>
<a href="{tsUrl('user','duty',array('id'=>$item[userid]))}">{$item[user][username]}</a>
{php echo getTime($item[uptime],time())}
<span style="float:right;">
<a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[group][groupname]}</a>
{if $item[count_comment]>0}<a class="rank" style="color:#FFFFFF;" href="{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[count_comment]}</a>{/if}
</span>
                        </div>

                    </div>

                    <div class="clear"></div>
                </li>
                {/loop}
                <li style="float:right;border-bottom: 0px;"><a href="{tsUrl('group','show')}"><img src="{SITE_URL}public/images/right.png" style="height:15px"></img></a></li>
            </ul>


<div class="page">{$pageUrl}</div>


</div>


</div>





</div>


<div class="col-md-4">


<div class="clear"></div>
<!--广告位-->
{php doAction('gobad','300')}


</div>
</div>
</div>

{template footer}